<template>
  <div class="goods-item">
    <van-image class="goods-img" width="100%" height="140" src="https://img.yzcdn.cn/vant/cat.jpeg" />

    <div class="top-wrap">
      <span class="goods-name">进口猫 田里刚摘的 15斤一份</span>
    </div>

    <div class="center-wrap">
      <div class="left">
        <span class="get-time">提货时间</span>
      </div>
      <div class="right">
        <div class="fenshu">
          <span>已售282份</span>
          <span>剩余555份</span>
        </div>
      </div>
    </div>

    <div class="bottom-wrap">
      <div class="price">
        <span class="price-current">￥2195</span>
        <span class="price-original">￥2499</span>
      </div>
      <van-button type="danger" class="goods-car" round>加入购物车</van-button>
    </div>

  </div>
</template>

<script>
export default {
  name: 'GoodsItem',
  components: {},
  props: {},
  data () {
    return {
    }
  },
  created () {

  },
  mounted () {

  },
  watch: {},
  computed: {},
  methods: {

  }
}
</script>

<style scoped lang="less">
.goods-item{
  border-radius: 20px;
  position: relative;
  //background-color: pink;
  box-shadow: grey 0px 0px 10px;
}
.goods-name{
  font-size: 30px;
  font-weight: 600;
  padding-left: 5px;
}
.center-wrap{
  font-size: 10px;
    color: red;
    height: 60px;
  .left{
    position: absolute;
    left:10px
  }
  .right{
    position:absolute;
    right: 10px;
  }
  .fenshu{
    display: flex;
    flex-direction: column;

  }
}
.bottom-wrap{
  margin-top: 10px;
  height: 60px;
  display: flex;
  justify-content: space-between;
  .goods-car{
    width: 190px;
    height: 45px;
    margin-right: 10px;
    font-size: 20px;
  }
  .price-current {
    color: red;
    font-size: 35px;
  }
  .price-original {
    text-decoration: line-through;
    font-size: 25px;
  }
}
</style>
